﻿<controls:ChildWindow x:Class="predic.Web.Controls.StudyDetailView"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                      Width="1000"
                      Height="600"
                      Title="StudyDetailView" 
                      xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
                      xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">

    <toolkit:BusyIndicator IsBusy="{Binding Path=IsBusy}"
                           Background="GreenYellow"
                           BusyContent="{Binding Path=BusyMessage}">

        <Grid x:Name="LayoutRoot"
              Margin="2">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Button x:Name="CancelButton"
                    Content="Cancel"
                    Click="CancelButton_Click"
                    Command="{Binding Path=CloseCommand}"
                    Width="75"
                    Height="23"
                    HorizontalAlignment="Right"
                    Margin="0,12,0,0"
                    Grid.Row="1" />
            <Button x:Name="OKButton"
                    Content="OK"
                    Click="OKButton_Click"
                    Command="{Binding Path=SaveCommand}"
                    Width="75"
                    Height="23"
                    HorizontalAlignment="Right"
                    Margin="0,12,79,0"
                    Grid.Row="1" />
            <Grid Name="grid1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

                <sdk:Label Name="label1"
                           Background="Beige"
                           Content="{Binding Path=SelectedStudy.Title}"
                           FontSize="16"
                           FontWeight="Bold"
                           Margin="5" />
                <sdk:Label FontSize="16"
                           Background="Beige"
                           Content="{Binding Path=SelectedStudy.Subtitle}"
                           FontWeight="Bold"
                           Name="label2"
                           Grid.Row="1"
                           Margin="5" />

                <ScrollViewer  Grid.Row="2"
                               ScrollViewer.VerticalScrollBarVisibility="Visible"
                               ScrollViewer.HorizontalScrollBarVisibility="Disabled">
                    <StackPanel>

                        <!--#######################################-->
                        <!--Selected Study-->
                        <!--#######################################-->
                        <Grid ShowGridLines="False"
                              Background="#FFD6EBEB">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="140" />
                                <ColumnDefinition Width="0.5*" />
                                <ColumnDefinition Width="140" />
                                <ColumnDefinition Width="0.5*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                            </Grid.RowDefinitions>

                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="0"
                                       Grid.Row="0"
                                       Text="Titlu:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="1"
                                     Grid.Row="0"
                                     Text="{Binding Path=SelectedStudy.Title, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->

                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="2"
                                       Grid.Row="0"
                                       Text="Subtitlu:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="3"
                                     Grid.Row="0"
                                     Text="{Binding Path=SelectedStudy.Subtitle, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->


                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="0"
                                       Grid.Row="1"
                                       Text="Text:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="1"
                                     Grid.Row="1"
                                     Text="{Binding Path=SelectedStudy.Text, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->

                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="2"
                                       Grid.Row="1"
                                       Text="Tematica:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="3"
                                     Grid.Row="1"
                                     Text="{Binding Path=SelectedStudy.Tematica, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->


                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="0"
                                       Grid.Row="2"
                                       Text="Subiect:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="1"
                                     Grid.Row="2"
                                     Text="{Binding Path=SelectedStudy.Subiect, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->
                        </Grid>
                        <!--#######################################-->


                        <!--#######################################-->
                        <!--Selected Study Detail-->
                        <!--#######################################-->
                        <Grid ShowGridLines="False"
                              Background="#FFDEFFC7">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="140" />
                                <ColumnDefinition Width="0.5*" />
                                <ColumnDefinition Width="140" />
                                <ColumnDefinition Width="0.5*" />
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                                <RowDefinition Height="35" />
                            </Grid.RowDefinitions>

                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="0"
                                       Grid.Row="0"
                                       Text="Verificat si incarcat:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="1"
                                     Grid.Row="0"
                                     Text="{Binding Path=CurrentDetail.CheckedAndLoaded, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->

                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="2"
                                       Grid.Row="0"
                                       Text="C 2M:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="3"
                                     Grid.Row="0"
                                     Text="{Binding Path=CurrentDetail.C2M, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}">
                                <TextBox.Triggers>
                                    <EventTrigger />
                                </TextBox.Triggers>
                            </TextBox>
                            <!-- ###################################################### -->

                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="0"
                                       Grid.Row="1"
                                       Text="C256:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="1"
                                     Grid.Row="1"
                                     Text="{Binding Path=CurrentDetail.C256}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->

                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="2"
                                       Grid.Row="1"
                                       Text="CAudio128:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="3"
                                     Grid.Row="1"
                                     Text="{Binding Path=CurrentDetail.CAudio128, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->


                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="0"
                                       Grid.Row="2"
                                       Text="CWithGeneric:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="1"
                                     Grid.Row="2"
                                     Text="{Binding Path=CurrentDetail.CWithGeneric}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->

                            <!-- ###################################################### -->
                            <TextBlock Grid.Column="2"
                                       Grid.Row="2"
                                       Text="CMarime:"
                                       Style="{StaticResource EntryLabel}" />

                            <TextBox Grid.Column="3"
                                     Grid.Row="2"
                                     Text="{Binding Path=CurrentDetail.CMarime, Mode=TwoWay}"
                                     Style="{StaticResource EntryTextbox}" />
                            <!-- ###################################################### -->



                        </Grid>
                        <!--#######################################-->
                    </StackPanel>
                </ScrollViewer>
            </Grid>
        </Grid>

    </toolkit:BusyIndicator>


</controls:ChildWindow>